﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace UI.xcgl
{
    public partial class CurrentMonthSalaryForm : Form
    {
        public Model.UserInfo userinfo;
        public CurrentMonthSalaryForm()
        {
            InitializeComponent();
        }

        private void CurrentMonthSalaryForm_Load(object sender, EventArgs e)
        {
            DataTable table = new DataTable();
            table = BLL.UserManager.SelectOneStaffJobDx(userinfo);
           
           textbox_dx.Text=Convert.ToString(table.Rows[0]["底薪"]);
           textbox_percentage.Text = Convert.ToString(table.Rows[0]["提成百分比"]);
            textbox_yj.Text=Convert.ToString(table.Rows[0]["业绩"]);
           int total =(int)(Convert.ToInt32(table.Rows[0]["底薪"])+Convert.ToDouble(table.Rows[0]["提成百分比"])*Convert.ToInt32(table.Rows[0]["业绩"]));
           textbox_total.Text = Convert.ToString(total);


        }

        private void skinButton1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
